//@include "lib.jsx"
var dName = removeFileExtension(getCurrentDocumentName())
// 获取当前活动文档
var doc = app.activeDocument;

// 获取当前选中的图层
var selectedLayer = doc.activeLayer;

// 将图层名字设置为"11"
selectedLayer.name = dName;